<template>
  <div class="app-container" style="font-size: 14px;text-align: center">
   <div v-html="data" style="border: solid 1px #c7e1f5;padding: 20px;width: 80%;margin: 0 auto;"></div>
  </div>
</template>

<script>
  import service from '../../../utils/request'
  import program from '@/api/student/program/index'

  export default {
    data() {
      return {
        loading: true,
        total: 0,
        show: false,
        isAdd: false,
        classesId: null,
        classname: null,
        params: {
          offset: 1,
          limit: 10,
          keyword: null,
          status: null
        },
        data: null
      }
    },
    created() {
      this.load()
    },
    methods: {
      load() {
        program.findProgram().then(res => {
          this.data = res.htmlName
        }).catch(error => {
          this.loading = false
          this.$notify({
            title: '错误信息',
            message: '登录超时，请重新登录'
          })
          this.$router.push({path: '/login'})
        })
        console.log(this.data)
      },
      toQuery() {
        this.load()
      },
      selectList(val) {
        this.$router.push({path: "teamComment", query: {"commentId": val.id}})
      },
      handleSelectionChange(val, row) {
        if (val.length == 0) {
          this.classesId = null
          this.classname = null
        } else if (val.length > 1) {
          this.$refs.table.clearSelection()
          this.$refs.table.toggleRowSelection(row)
          val.splice(0, val.length - 1)
          this.classesId = val[0].id
          this.classname = val[0].classname
        } else {
          this.classesId = val[0].id
          this.classname = val[0].classname
        }
      }
    }
  }
</script>

<style scoped>
  .status {
    color: green;
  }

  .Nsb_r_list th {
    background: #f3faff;
    border: solid 1px #c7e1f5;
    color: #333;
    padding: 0px;
    height: 30px;
    line-height: 45px;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 6px;
  }

  .Nsb_r_list TD {
    border: solid 1px #c7e1f5;
    color: #000;
    height: 20px;
    line-height: 20px;
    padding: 5px 5px;
    margin: 0px;
    font-size: 12px;
  }

</style>
